﻿using Niti.OrderManage.OrderManage.Enum;
using System;
using System.Collections.Generic;
using System.Text;

namespace Niti.OrderManage.DTO
{
   public class CheckOutOrderDto
    {
        /// <summary>
        /// 出库订单编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public string ApplyUser { get; set; }
        /// <summary>
        /// 领料说明
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? CheckTime { get; set; }
        /// <summary>
        /// 草稿状态 
        /// </summary>
        public OrderStatusCode IsDraft { get; set; }
        /// <summary>
        /// 订单商品种类的数量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 订单商品总价
        /// </summary>
        public float TotalPrice { get; set; }
        /// <summary>
        /// 订单明细
        /// </summary>
        public virtual List<CheckOutLineItemDto> CheckOutOrderLineItem { get; set; }
    }
    public class SelectCheckOutOrderDto
    {
        /// <summary>
        /// 出库订单编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public string ApplyUser { get; set; }
        /// <summary>
        /// 领料说明
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime CreationTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? CheckTime { get; set; }
        /// <summary>
        /// 草稿状态 
        /// </summary>
        public OrderStatusCode IsDraft { get; set; }
        /// <summary>
        /// 订单商品种类的数量
        /// </summary>
        public int Count { get; set; }

        /// <summary>
        /// 订单商品总价
        /// </summary>
        public float TotalPrice { get; set; }
    }
    public class AddCheckOutOrderDto
    {
        /// <summary>
        /// 出库订单编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 申请人
        /// </summary>
        public string ApplyUser { get; set; }
        /// <summary>
        /// 领料说明
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 明细
        /// </summary>
        public virtual List<CheckOutItemDto> CheckOutItem { get; set; }
    }

    public class UpdateCheckOutOrderDto
    {
        /// <summary>
        /// 出库订单编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 领料说明
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 明细
        /// </summary>
        public virtual List<CheckOutItemDto> CheckOutItem { get; set; }
    }

}
